package com.ukao.steward.receiver;

import android.content.Context;

import com.ukao.steward.util.L;

//import cn.jpush.android.api.JPushMessage;
//import cn.jpush.android.service.JPushMessageReceiver;

import cn.jpush.android.api.JPushMessage;
import cn.jpush.android.service.JPushMessageReceiver;

import static com.ukao.steward.R.drawable.success;

/**
 * 自定义JPush message 接收器,包括操作tag/alias的结果返回(仅仅包含tag/alias新接口部分)
 * */
public class MyJPushMessageReceiver   extends JPushMessageReceiver {

    @Override
    public void onTagOperatorResult(Context context,JPushMessage jPushMessage) {

        super.onTagOperatorResult(context, jPushMessage);
    }
    @Override
    public void onCheckTagOperatorResult(Context context,JPushMessage jPushMessage){

        super.onCheckTagOperatorResult(context, jPushMessage);
    }
    @Override
    public void onAliasOperatorResult(Context context, JPushMessage jPushMessage) {

        if(jPushMessage.getErrorCode() == 0){
            L.i("Alias=success");
        }else{
            L.i("Alias=fail");
        }

        super.onAliasOperatorResult(context, jPushMessage);
    }
}
